<div class="whoisonline" style="width:100%">
    <?php foreach($online_players as $i => $player): ?>
    <?php echo link_to($player->getPseudo(), 'show_player', $player) ?>
    <?php echo ($i + 1 != count($online_players) ? ',': '') ?>
    <?php endforeach; ?>
</div>
